package org.avapir.snake;

import java.awt.Graphics;
import java.awt.event.KeyEvent;

/**
 * 
 * @author Alpen Ditrix
 *
 */
public class Debug implements Constants{
	
	static Graphics graphics;
	static KeyEvent key;
	static long longSleepsCounter, shortSleepsCounter;
	static long sleepTime, workTime;
	

	protected static void drawDebugInfo() {
		
		graphics.setColor(debugTextColor);
		graphics.drawString(Game.snakes.get(0).toString(), 0, 40);

		graphics.drawString(
				Long.toString(longSleepsCounter) + " " + Long.toString(shortSleepsCounter), 0,  50);
		graphics.drawString(
				Double.toString(sleepTime) + " " + Double.toString(workTime),
				0, 60);
		try {
			/**/graphics.drawString(Character.toString(key.getKeyChar()), 0,
					70);
		} catch (NullPointerException e) {
		}
	}

	

}
